while True:
    try:
        a, b, c = map(int, input().strip().split())
        flag = False  # 标记是否找到答案

        for n in range(10, 101):
            if n % 3 == a and n % 5 == b and n % 7 == c:
                print(n)
                flag = True  # 找到答案
                break

        if not flag:  # 没有找到答案
            print("No answer")

    except:
        break
